{{#extends @html/layouts/layout-standart.html}}

{{:init}}
	{{@community.html:init}}
	{{!connect "screen/content-issues.css" media="screen" charset="utf-8"}}
{{/:init}}

{{:title}}{{item.title}}{{/:title}}

{{:content_class}}content-issues{{/:content_class}}

{{:layout_main}}
	<div class="date-">{{issue.publish_date|date "%d %M %Y"}}</div>
	<h1 class="title-">{{issue.issue_number}}. {{issue.issue_name}}</h1>
	<ul class="userbar-">
		{{?issue.acl.item_edit.is_allowed}}
		<li class="edit-"><a href="{{/}}{{community.url}}/{{issue.issue_oid}}/edititem">Редактировать</a></li>
		{{/?}}
		{{?issue.acl.item_delete}}
		<li class="delete-"><a href="{{/}}{{community.url}}/{{issue.issue_oid}}/deleteitem">Удалить</a></li>
		{{/?}}
	</ul>
	<div class="content">
		<p>{{issue.issue_descr | safe}}</p>
	</div>
	<div class="rubrics-">
		{{!for rubrics do=@:rubric}}
		{{:rubric}}
		<h2 class="header-"><a href="{{/}}{{community.url}}/{{*tdi_url}}" class="s0{{*tdi_color}}-link">{{*tdi_title}}</a></h2>
		<ul class="items-">
			{{!for *items do=@:items_list}}
			{{:items_list}}
				<li><a href="{{/}}{{community.url}}/{{*item_oid}}">{{*title}}</a></li>
			{{/:items_list}}
		</ul>
		{{/:rubric}}
	</div>
{{/:layout_main}}
